package com.link.play.fit.ai.ui.weightcontrol.ac

import android.os.Bundle
import androidx.activity.addCallback
import com.link.play.fit.ai.R
import com.link.play.fit.ai.base.BaseActivity
import com.link.play.fit.ai.base.goToAc
import com.link.play.fit.ai.databinding.AcWeightControlQuestBinding

class WeightControlQuestAc : BaseActivity<AcWeightControlQuestBinding>(AcWeightControlQuestBinding::inflate) {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        onBackPressedDispatcher.addCallback {
            finish()
            overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right)
        }
        binding.flBack.setOnClickListener {
            onBackPressedDispatcher.onBackPressed()
        }

        binding.tvNext.setOnClickListener {
            goToAc(WeighControlPbAc::class.java)
            overridePendingTransition(R.anim.slide_in_from_right, R.anim.slide_out_to_left)
        }
    }
}